<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>用户数据</h1>
    <a href="/register">添加用户</a>
    <table border="1">
      <thead>
        <tr>
          <th>ID</th>
          <th>姓名</th>
          <th>密码</th>
          <th>年龄</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        {% for obj in userList%}
        <tr>
          <td>{{obj.id}}</td>
          <td>{{obj.name}}</td>
          <td>{{obj.password}}</td>
          <td>{{obj.age}}</td>
          <td>
            <a href="/del/user/?uid={{obj.id}}" style="color: red">删除</a>
            <a href="/update/user/?uid={{obj.id}}">编辑</a>
          </td>
        </tr>
        {% endfor %}
      </tbody>
    </table>
  </body>
</html>
